package com.LFLWZ.loginServiceImpl;
import com.LFLWZ.beans.POJO.CloudLogin;
import com.LFLWZ.beans.POJO.sign;
import com.LFLWZ.mapper.CloudLoginmapper;
import com.LFLWZ.service.CloudLoginService;
import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;
import java.util.List;


/**
 * (CloudLogin)表服务实现类
 *
 * @author 冯登庭
 * @since 2020-12-05 23:10:53
 */
@Service
public class CloudLoginServiceImpl implements CloudLoginService {
    @Autowired
    private CloudLoginmapper cloudLoginmapper;

    @Override
    public CloudLogin sel(CloudLogin cloudLogin) {
        return cloudLoginmapper.sel(cloudLogin);
    }

    /**
     * 通过主键删除
     * @param cloudLogin
     * @return
     */
    @Override
    public int update(CloudLogin cloudLogin) {
        return cloudLoginmapper.passwordUp(cloudLogin);
    }

    /**
     * 通过实体类查询
     * @param cloudLogin 实例对象
     * @return
     */
    @Override
    public List<CloudLogin> queryAll(CloudLogin cloudLogin) {
        return cloudLoginmapper.queryAll(cloudLogin);
    }

    @Override
    public CloudLogin ins(CloudLogin cloudLogin) {
        cloudLoginmapper.ins(cloudLogin);
        return cloudLogin;
    }

    @Override
    public int passwordUp(CloudLogin cloudLogin) {
        return cloudLoginmapper.passwordUp(cloudLogin);
    }

    @Override
    public CloudLogin selByPhone(CloudLogin cloudLogin) {
        return cloudLoginmapper.selByPhone(cloudLogin);
    }

    @Override
    public sign seltime(Integer uId) {
        return cloudLoginmapper.seltime(uId);
    }

    @Override
    public int upjf(Integer uId) {
        return cloudLoginmapper.upjf(uId);
    }

    @Override
    public int insign(Integer uId) {
        return cloudLoginmapper.insign(uId);
    }

    @Override
    public sign selsign(Integer uId) {
        return cloudLoginmapper.selsign(uId);
    }

    @Override
    public int upsign(Integer uId) {
        return cloudLoginmapper.upsign(uId);
    }

}